QuickOPC User's Guide and Reference
UALocalApplicationDiscoveryQuery Constructor(IEnumerable<String>,UAApplicationTypes,Boolean)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UALocalApplicationDiscoveryQuery Class > UALocalApplicationDiscoveryQuery Constructor : UALocalApplicationDiscoveryQuery Constructor(IEnumerable<String>,UAApplicationTypes,Boolean)
Discovery URI strings.
The type of application.
Determines whether one element will be returned for each discovery URI.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal discoveryUriStrings As IEnumerable(Of String), _
   ByVal applicationTypes As UAApplicationTypes, _
   ByVal flat As Boolean _
)
'Usage
 
Dim discoveryUriStrings As IEnumerable(Of String)
Dim applicationTypes As UAApplicationTypes
Dim flat As Boolean
 
Dim instance As New UALocalApplicationDiscoveryQuery(discoveryUriStrings, applicationTypes, flat)

Parameters

discoveryUriStrings
Discovery URI strings.
applicationTypes
The type of application.
flat
Determines whether one element will be returned for each discovery URI.
Remarks

When the flat parameter is false, the discovery query returns one UADiscoveryElement for each application found, and its DiscoveryUriStrings property contains one or more application discovery URLs.

When the flat parameter is true, the discovery query returns one UADiscoveryElement for each discovery URL of each application found. In this case, the DiscoveryUriStrings property of each returned application element contains precisely one string, and you can therefore use the DiscoveryUriString property instead to obtain the discovery URL.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also